var pricearr=[
	["不限","1万元以下","1-5万元","5-10万元","10万-20万元","20-50万元","50万以上"],
	["不限","1万以下","1-1.5万","1.5万以上"]
]
var areaarr=[
	["不限","0-30㎡","30-60㎡","60-100㎡","100-200㎡","200-500㎡","500-1000㎡","1000-3000㎡","3000㎡以上"]
]
// parent.$("iframe")[0].style.height = "14vw";
for(var i=0;i<pricearr[0].length;i++){
			$("#pricechoose .rightlists").append("<div class='right'>"+pricearr[0][i]+"</div>")
		}
		for(var i=0;i<areaarr[0].length;i++){
				$("#mjchoose .rightlists").append("<div class='right'>"+areaarr[0][i]+"</div>")
			}
$(".jiage").bind("click",function(){
	if($('#pricechoose').css('display') == 'none'){
		$("#pricechoose").css({'display':'flex'});
		// parent.$("iframe")[0].style.height = "97vw";
	}else{
		$("#pricechoose").css({'display':'none'});
		// parent.$("iframe")[0].style.height = "14vw";
	}
	$('#mjchoose').css({'display':'none'});
	$(".threeLian").css({'display':'none'});
	$(".shopsell").css({'display':'none'});
	
	
})
$(".mianji").bind("click",function(){
	if($('#mjchoose').css('display') == 'none'){
		$("#mjchoose").css({'display':'flex'});
		// parent.$("iframe")[0].style.height = "97vw";
	}else{
		$("#mjchoose").css({'display':'none'});
		parent.$("iframe")[0].style.height = "14vw";
	}
	$('#pricechoose').css({'display':'none'});
	$(".threeLian").css({'display':'none'});
	$(".shopsell").css({'display':'none'});
})
$(".more").bind("click",function(){
	if($('.shopsell').css('display') == 'none'){
		$(".shopsell").css({'display':'block'});	
		// parent.$("iframe")[0].style.height = "100%";
	}else{
		$(".shopsell").css({'display':'none'});
		// parent.$("iframe")[0].style.height = "14vw";
	}
	$('#pricechoose').css({'display':'none'});
	$(".threeLian").css({'display':'none'});
	$("#mjchoose").css({'display':'none'});
})
$(".shopsellnochoose").click(function(){
	$("#more").html($(this).text());
	$(this).css ('background-color', '#feebc3').siblings().css ('background-color', '#f7f7f8');
	$(this).css ('color', '#f2a602').siblings().css ('color', '#999999');
})
$("#pricechoose .left").bind("click",function(){
	var id=$(this).attr("id");
	$(this).siblings().removeClass('borderlineyellow');
	$(this).siblings().addClass('borderlinewhite');
	$(this).addClass('borderlineyellow');
	$(this).removeClass('borderlinewhite');
	$("#pricechoose .rightlists").empty();
	for(var i=0;i<pricearr[id].length;i++){
		$("#pricechoose .rightlists").append("<div class='right'>"+pricearr[id][i]+"</div>")
	}
	$("#pricechoose .rightlists .right").bind("click",function(){
		// parent.$("iframe")[0].style.height = "14vw";
		$(this).siblings().removeClass('colororange');
		$(this).siblings().addClass('colorblack');
		$(this).addClass('colororange');
		$(this).removeClass('colorblack');
		$(".threeTab #jg").html($(this).text());
		$('#pricechoose').css({'display':'none'});
	})
})

$("#pricechoose .rightlists .right").bind("click",function(){
	// parent.$("iframe")[0].style.height = "14vw";
	$(this).siblings().removeClass('colororange');
	$(this).siblings().addClass('colorblack');
	$(this).addClass('colororange');
	$(this).removeClass('colorblack');
	$(".threeTab #jg").html($(this).text());
	$('#pricechoose').css({'display':'none'});
})

$("#mjchoose .rightlists .right").bind("click",function(){
	// parent.$("iframe")[0].style.height = "14vw";
	$(this).siblings().removeClass('colororange');
	$(this).siblings().addClass('colorblack');
	$(this).addClass('colororange');
	$(this).removeClass('colorblack');
	$(".threeTab #mj").html($(this).text());
	$('#mjchoose').css({'display':'none'});
})

$(".sure").bind("click",function(){
	$('.shopsell').css({'display':'none'});
	// parent.$("iframe")[0].style.height = "14vw";
})

$(".clear").bind("click",function(){
	$("#more").html("更多");
	$(".shopsellnochoose").css ('background-color', '#feebc3').siblings().css ('background-color', '#f7f7f8');
	$(".shopsellnochoose").css ('color', '#f2a602').siblings().css ('color', '#999999');
})




